package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

@Data
@ApiModel("购物车信息")
@TableName("oms_cart_item")
public class OmsCartItem {
    @ApiModelProperty("购物车ID")
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("商品ID")
    @TableField(value = "product_id")
    private Long productId;
    @ApiModelProperty("商品sku的id")
    @TableField(value = "product_sku_id")
    private Long productSkuId;
    @ApiModelProperty("会员id")
    @TableField(value = "member_id")
    private Long memberId;
    @ApiModelProperty("购买数量")
    @TableField(value = "quantity")
    private int quantity;
    @ApiModelProperty("添加到购物车价格")
    @TableField(value = "price")
    private BigDecimal price;
    @ApiModelProperty("商品主图")
    @TableField(value = "product_pic")
    private String productPic;
    @ApiModelProperty("商品名称")
    @TableField(value = "product_name")
    private String productName;
    @ApiModelProperty("商品品牌")
    @TableField(value = "product_brand")
    private String productBrand;
    @ApiModelProperty("商品条码")
    @TableField(value = "product_sn")
    private String productSn;
    @ApiModelProperty("商品副标题")
    @TableField(value = "product_sub_title")
    private String productSubTitle;
    @ApiModelProperty("商品sku条码")
    @TableField(value = "product_sku_code")
    private String productSkuCode;
    @ApiModelProperty("会员昵称")
    @TableField(value = "member_nickname")
    private String memberNickname;
    @ApiModelProperty("创建时间")
    @TableField(value = "create_date")
    private String createDate;
    @ApiModelProperty("修改时间")
    @TableField(value = "modify_date")
    private String modifyDate;
    @ApiModelProperty("是否删除")
    @TableField(value = "delete_status")
    private int deleteStatus;
    @ApiModelProperty("商品分类")
    @TableField(value = "product_category_id")
    private Long productCategoryId;
    @ApiModelProperty("商品特性")
    @TableField(value = "sp_data")
    private String spData;

}
